package com.t13;

import java.util.Arrays;

/**
 * Created by xuyiwei on 2018/7/29.
 */
public class Xiegang {
    public static void main(String[] args) {
        String s1 = "s.3";
        System.out.println(Arrays.toString(s1.split("\\.")));
        //[s, 3]
        String s2 = "Java string-split#test";
        System.out.println(Arrays.toString(s2.split(" |-|#")));
        //[Java, string, split, test]
        System.out.println("a\\\\b".replaceAll("\\\\", "A"));//④
        //aAAb
        String s4 = "+";
        System.out.println(s4.matches("\\+"));
        String s5 = "";
        System.out.println(s5.matches("\\W"));

    }
}
